package com.isale.model.db;

import com.isale.common.model.db.BaseDbEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;


/**
 * 订单商品表
 * 数据库表【isale_order_goods】对应的entity对象
 *
 * @author  bjs
 * @date 2016-11-15 11:15:56
*/
@Entity
@Table(name = "isale_order_goods")
public class IsaleOrderGoods extends BaseDbEntity implements Serializable {


// 商品id
@Column(name = "goods_id", nullable = false)
private java.lang.Long goodsId;


// 商品名称
@Column(name = "goods_name", nullable = false)
private java.lang.String goodsName;


// 商品链接
@Column(name = "url", nullable = false)
private java.lang.String url;


// 商品金额
@Column(name = "goods_price", nullable = false)
private java.lang.String goodsPrice;


// 计佣金额
@Column(name = "commission_price", nullable = false)
private java.lang.String commissionPrice;


// 商品数量
@Column(name = "goods_num", nullable = false)
private java.lang.Integer goodsNum;


// 退货数量
@Column(name = "refund_num", nullable = false)
private java.lang.Integer refundNum;


// 实际结算收入
@Column(name = "settle_imcome", nullable = false)
private java.lang.String settleImcome;






    // ================================================================================================



    /**
     * 获取对象的属性【商品id】
     *
     * @return java.lang.Long
     */
public java.lang.Long getGoodsId() {
        return goodsId;
        }

/**
 * 设置对象的属性【商品id】
 * @param goodsId
 */
public void setGoodsId(java.lang.Long goodsId) {
        this.goodsId = goodsId;
        }

    /**
     * 获取对象的属性【商品名称】
     *
     * @return java.lang.String
     */
public java.lang.String getGoodsName() {
        return goodsName;
        }

/**
 * 设置对象的属性【商品名称】
 * @param goodsName
 */
public void setGoodsName(java.lang.String goodsName) {
        this.goodsName = goodsName;
        }

    /**
     * 获取对象的属性【商品链接】
     *
     * @return java.lang.String
     */
public java.lang.String getUrl() {
        return url;
        }

/**
 * 设置对象的属性【商品链接】
 * @param url
 */
public void setUrl(java.lang.String url) {
        this.url = url;
        }

    /**
     * 获取对象的属性【商品金额】
     *
     * @return java.lang.String
     */
public java.lang.String getGoodsPrice() {
        return goodsPrice;
        }

/**
 * 设置对象的属性【商品金额】
 * @param goodsPrice
 */
public void setGoodsPrice(java.lang.String goodsPrice) {
        this.goodsPrice = goodsPrice;
        }

    /**
     * 获取对象的属性【计佣金额】
     *
     * @return java.lang.String
     */
public java.lang.String getCommissionPrice() {
        return commissionPrice;
        }

/**
 * 设置对象的属性【计佣金额】
 * @param commissionPrice
 */
public void setCommissionPrice(java.lang.String commissionPrice) {
        this.commissionPrice = commissionPrice;
        }

    /**
     * 获取对象的属性【商品数量】
     *
     * @return java.lang.Integer
     */
public java.lang.Integer getGoodsNum() {
        return goodsNum;
        }

/**
 * 设置对象的属性【商品数量】
 * @param goodsNum
 */
public void setGoodsNum(java.lang.Integer goodsNum) {
        this.goodsNum = goodsNum;
        }

    /**
     * 获取对象的属性【退货数量】
     *
     * @return java.lang.Integer
     */
public java.lang.Integer getRefundNum() {
        return refundNum;
        }

/**
 * 设置对象的属性【退货数量】
 * @param refundNum
 */
public void setRefundNum(java.lang.Integer refundNum) {
        this.refundNum = refundNum;
        }

    /**
     * 获取对象的属性【实际结算收入】
     *
     * @return java.lang.String
     */
public java.lang.String getSettleImcome() {
        return settleImcome;
        }

/**
 * 设置对象的属性【实际结算收入】
 * @param settleImcome
 */
public void setSettleImcome(java.lang.String settleImcome) {
        this.settleImcome = settleImcome;
        }

        // ================================================================================================

        public String toString(){
            StringBuffer sb = new StringBuffer();
            sb.append("IsaleOrderGoods=====>");
            sb.append("{");
                                sb.append("id=>"+this.id).append(", ");
                                sb.append("goodsId=>"+this.goodsId).append(", ");
                                sb.append("goodsName=>"+this.goodsName).append(", ");
                                sb.append("url=>"+this.url).append(", ");
                                sb.append("goodsPrice=>"+this.goodsPrice).append(", ");
                                sb.append("commissionPrice=>"+this.commissionPrice).append(", ");
                                sb.append("goodsNum=>"+this.goodsNum).append(", ");
                                sb.append("refundNum=>"+this.refundNum).append(", ");
                                sb.append("settleImcome=>"+this.settleImcome).append(", ");
                                sb.append("createTime=>"+this.createTime).append(", ");
                                sb.append("updateTime=>"+this.updateTime).append(", ");
                        sb.append("}");
            return sb.toString();
        }

}